import App from './App'
import store from './store';
import router from './router'
// console.log(store)
// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
import uView from 'uview-ui'

Vue.config.productionTip = false
Vue.prototype.$store = store
App.mpType = 'app'
const app = new Vue({

	...App
})
app.$mount()

// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
// import http from './api/http.js'
import http from '@/api/http.js'

export function createApp() {
	const app = createSSRApp(App)
	app.use(store);
	app.use(router)
	app.config.globalProperties.$http = http

	return {
		app
	}
}
// #endif